package com.study.model.pojo;

import java.io.Serializable;
import javax.persistence.*;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.math.BigInteger;


/**
 * The persistent class for the reciprocating_unit database table.
 * 
 */
@Entity
@Table(name="reciprocating_unit")
@NamedQuery(name="ReciprocatingUnit.findAll", query="SELECT r FROM ReciprocatingUnit r")
public class ReciprocatingUnit implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="rec_id")
	private String recId;

	@Column(name="contact_phone")
	private BigInteger contactPhone;

	private int eid;

	@Column(name="rec_address")
	private String recAddress;

	@Column(name="rec_class")
	private int recClass;

	@Column(name="rec_contact")
	private String recContact;

	@DateTimeFormat(pattern = "yyyy-MM-dd")  
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="rec_creation_data")
	private Date recCreationData;

	@Column(name="rec_name")
	private String recName;

	@Column(name="rec_phone")
	private BigInteger recPhone;

	@DateTimeFormat(pattern = "yyyy-MM-dd")  
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="rec_registration_data")
	private Date recRegistrationData;

	@Column(name="rec_state")
	private int recState;

	public ReciprocatingUnit() {
	}

	public String getRecId() {
		return this.recId;
	}

	public void setRecId(String recId) {
		this.recId = recId;
	}

	public BigInteger getContactPhone() {
		return this.contactPhone;
	}

	public void setContactPhone(BigInteger contactPhone) {
		this.contactPhone = contactPhone;
	}

	public int getEid() {
		return this.eid;
	}

	public void setEid(int eid) {
		this.eid = eid;
	}

	public String getRecAddress() {
		return this.recAddress;
	}

	public void setRecAddress(String recAddress) {
		this.recAddress = recAddress;
	}

	public int getRecClass() {
		return this.recClass;
	}

	public void setRecClass(int recClass) {
		this.recClass = recClass;
	}

	public String getRecContact() {
		return this.recContact;
	}

	public void setRecContact(String recContact) {
		this.recContact = recContact;
	}

	public Date getRecCreationData() {
		return this.recCreationData;
	}

	public void setRecCreationData(Date recCreationData) {
		this.recCreationData = recCreationData;
	}

	public String getRecName() {
		return this.recName;
	}

	public void setRecName(String recName) {
		this.recName = recName;
	}

	public BigInteger getRecPhone() {
		return this.recPhone;
	}

	public void setRecPhone(BigInteger recPhone) {
		this.recPhone = recPhone;
	}

	public Date getRecRegistrationData() {
		return this.recRegistrationData;
	}

	public void setRecRegistrationData(Date recRegistrationData) {
		this.recRegistrationData = recRegistrationData;
	}

	public int getRecState() {
		return this.recState;
	}

	public void setRecState(int recState) {
		this.recState = recState;
	}

	@Override
	public String toString() {
		return "ReciprocatingUnit [recId=" + recId + ", contactPhone=" + contactPhone + ", eid=" + eid + ", recAddress="
				+ recAddress + ", recClass=" + recClass + ", recContact=" + recContact + ", recCreationData="
				+ recCreationData + ", recName=" + recName + ", recPhone=" + recPhone + ", recRegistrationData="
				+ recRegistrationData + ", recState=" + recState + "]";
	}

}